import type { DefaultTheme } from 'vitepress'

export const sidebar: DefaultTheme.Config['sidebar'] = {
  '/handle-app-sop': [
    {
      text: '引言',
      items: [{
          text: '编写目的',
          link: '/handle-app-sop/1-introduce/purpose',
        },
        {
          text: '整体流程',
          link: '/handle-app-sop/1-introduce/overview',
        }]
    },
    {
      text: '企业节点',
      items: [
        {
          text: '简介',
          link: '/handle-app-sop/2-idhub/introduce',
        },
        {
          text: '企业节点社区版',
          link: '/handle-app-sop/2-idhub/community',
        },
        {
          text: '企业节点标准版',
          link: '/handle-app-sop/2-idhub/standard',
        },
        {
          text: '企业节点OpenAPI',
          link: '/handle-app-sop/2-idhub/api-list',
        }]
    },
    {
      text: ' 企业前缀申请',
      link: '/handle-app-sop/3-apply-prefix/introduce'
    },
    {
      text: '标识应用开发环境',
      items: [
        {
          text: '简介',
          link: '/handle-app-sop/3-develop-env/introduce',
        },
        {
          text: '企业节点安装',
          link: '/handle-app-sop/3-develop-env/idhub-install',
        }]
    },
    {
      text: '快速入门',
      items: [
        {
          text: '创建元数据',
          link: '/handle-app-sop/4-get-started/create-meta',
        },
        {
          text: '标识注册解析',
          link: '/handle-app-sop/4-get-started/handle-resolve',
        }]
    },
    {
      text: '标识应用开发',
      items: [
        {
          text: '场景描述',
          link: '/handle-app-sop/5-app-develop/demo-description',
        },
        {
          text: '开发流程',
          link: '/handle-app-sop/5-app-develop/dev-flow',
          items: [
            {
              text: 'step1: 申请企业前缀',
              link: '/handle-app-sop/5-app-develop/step1',
            },
            {
              text: 'step2: 获取应用标识身份',
              link: '/handle-app-sop/5-app-develop/step2',
            },
            {
              text: 'step3: 企业数据接入和管理',
              link: '/handle-app-sop/5-app-develop/step3',
              items: [
                {
                  text: 'ID-SDK/API接口使用方法',
                  link: '/handle-app-sop/5-app-develop/step3-sdk',
                },
                {
                  text: 'IDLink使用方法',
                  link: '/handle-app-sop/5-app-develop/step3-idlink',
                }
              ]
            },
            {
              text: 'step4: 标识应用开发',
              link: '/handle-app-sop/5-app-develop/step4',
            },
          ]
        },
        {
          text: '兼容说明',
          link: '/handle-app-sop/5-app-develop/compatible',
        }
      ]
    },
    {
      text: 'ID-SDK/API接口',
      items: [{
          text: '基础用法',
          link: '/handle-app-sop/6-idsdk-api/basic',
        }, {
          text: '高级用法',
          link: '/handle-app-sop/6-idsdk-api/advance',
        }]
    },
    {
      text: '标识应用实践',
      link: '/handle-app-sop/7-app-practice/introduce',
    },
    {
      text: '标识应用交付',
      link: '/handle-app-sop/8-app-deliver/introduce'
    },
    {
      text: '企业节点快速部署',
      link: '/handle-app-sop/9-deployment/introduce'
    }
  ],
  '/sdk/v1': [
    {
      text: '开始',
      items: [
        { text: '简介', link: '/sdk/v1/introduction' },
        {
          text: '快速开始',
          link: '/sdk/v1/quick-start',
        },
        { text: '身份认证', link: '/sdk/v1/user-auth' },
        { text: '参数配置', link: '/sdk/v1/config' },
      ],
    },
    {
      text: '服务端设置',
      items: [
        { text: '前缀服务注册', link: '/sdk/v1/prefix-home' },
        {
          text: '前缀服务删除',
          link: '/sdk/v1/prefix-unhome',
        },
      ],
    },
    {
      text: '基本功能',
      items: [
        { text: '标识解析', link: '/sdk/v1/id-resolve' },
        { text: '标识注册', link: '/sdk/v1/id-register' },
        { text: '标识删除', link: '/sdk/v1/id-delete' },
        { text: '标识值新增', link: '/sdk/v1/id-value-add' },
        { text: '标识值修改', link: '/sdk/v1/id-value-modify' },
        { text: '标识值删除', link: '/sdk/v1/id-value-delete' },
      ],
    },
    {
      text: '高级特性',
      items: [
        // { text: '权限控制', link: '/sdk/hl-permission' },
        { text: '可信解析', link: '/sdk/v1/hl-trust' },
        // { text: '标识值类型', link: '/sdk/v1/hl-id-value' },
        // { text: '连接池', link: '/sdk/hl-connect-pool' },
        // { text: '异步通信', link: '/sdk/hl-async-message' }
      ],
    },
  ],
  '/sdk/v2': [
    {
      text: '开始',
      items: [
        { text: '简介', link: '/sdk/v2/introduction' },
        { text: '身份认证', link: '/sdk/v2/user-auth' }
      ],
    },
    {
      text: '基本功能',
      items: [
        { text: '元数据', link: '/sdk/v2/basic/meta' },
        { text: '数据权限', link: '/sdk/v2/basic/data-auth' },
        { text: '标识操作', link: '/sdk/v2/basic/handle' },
        { text: '文件处理', link: '/sdk/v2/basic/file' }
      ],
    }
  ],
  '/idhub': [
    {
      text: '开始',
      items: [
        {
          text: '简介',
          link: '/idhub/standard/introduce.md',
        },
      ],
    },
    {
      text: 'OpenAPI',
      items: [
        {
          text: '标准版',
              link: '/idhub/standard/openapi.md',
              items: [
                {
                  text: '认证接口',
                  link: '/idhub/standard/challenge.md',
                },
                {
                  text: '元数据',
                  link: '/idhub/standard/meta.md',
                },
                {
                  text: '数据权限',
                  link: '/idhub/standard/data-auth.md',
                },
                {
                  text: '标识操作',
                  link: '/idhub/standard/handle.md',
                },
                {
                  text: '文件处理',
                  link: '/idhub/standard/file.md',
                },
                {
                  text: '响应状态码',
                  link: '/idhub/standard/state-code.md',
                },
              ],
        },   {
          text: '兼容版',
          link: '/idhub/snms/api-introduce.md',
          items: [
            {
              text: 'V3',
              // link: '/idhub/snms/v3/introduce.md',
              collapsed: true,
              items: [
                {
                  text: '认证接口',
                  link: '/idhub/snms/v3/identity-auth.md',
                },
                {
                  text: '模版接口',
                  link: '/idhub/snms/v3/template.md',
                },
                {
                  text: '标识接口',
                  link: '/idhub/snms/v3/handle-operate.md',
                },
              ],
            },
            {
              text: 'V5',
              // link: '/idhub/snms/v5/introduce.md',
              collapsed: true,
              items: [
                {
                  text: '认证接口',
                  link: '/idhub/snms/v5/identity-auth.md',
                },
                {
                  text: '模版接口',
                  link: '/idhub/snms/v5/template.md',
                },
                {
                  text: '标识接口',
                  link: '/idhub/snms/v5/handle-operate.md',
                },
              ],
            },
            {
              text: '附录',
              collapsed: true,
              items: [
                {
                  text: '响应状态码',
                  link: '/idhub/snms/attachment.md',
                },
              ],
            }
          ]
        }
      ]
    },
  ],
   
}
